Type.registerNamespace("Microsoft.Live.ClientControls.VE.Extenders");Microsoft.Live.ClientControls.VE.Extenders.AllShapeLayers=function(element){Microsoft.Live.ClientControls.VE.Extenders.AllShapeLayers.initializeBase(this,[element]);this._toggleMode;this._mapControlID;this._shown=true;}
Microsoft.Live.ClientControls.VE.Extenders.AllShapeLayers.prototype={initialize:function(){Microsoft.Live.ClientControls.VE.Extenders.AllShapeLayers.callBaseMethod(this,'initialize');$addHandler(this.get_element(),"click",Function.createDelegate(this,this._onClick));},get_ToggleMode:function(){return this._toggleMode;},set_ToggleMode:function(value){this._toggleMode=value;},get_MapControlID:function(){return this._mapControlID;},set_MapControlID:function(value){this._mapControlID=value;},_onClick:function(e){var mapcontrol=$find(this._mapControlID);if(mapcontrol){switch(this._toggleMode){case 0:this._shown=false;break;case 1:this._shown=true;break;case 2:this._shown=!this._shown;break;}
if(this._shown){mapcontrol.ShowAllShapeLayers();}else{mapcontrol.HideAllShapeLayers();}}
e.preventDefault();},dispose:function(){$clearHandlers(this.get_element());Microsoft.Live.ClientControls.VE.Extenders.AllShapeLayers.callBaseMethod(this,'dispose');}}
Microsoft.Live.ClientControls.VE.Extenders.AllShapeLayers.registerClass("Microsoft.Live.ClientControls.VE.Extenders.AllShapeLayers",Sys.UI.Behavior);if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
